// src/api/swiper.js
import request from '../utils/request'

// 获取所有轮播图
export const getAllSwiper = () => {
  return request({
    url: '/api/swiper/getAllimg',
    method: 'get'
  })
}

// 添加轮播图
export const addSwiper = (data) => {
  return request({
    url: '/api/swiper/addImage',
    method: 'post',
    data
  })
}

// 删除轮播图
export const delSwiper = (data) => {
  return request({
    url: '/api/swiper/delImage',
    method: 'post',
    data
  })
}